package com.rm.zeyou.controller;

import com.rm.zeyou.entity.BannerConfig;
import com.rm.zeyou.response.ApiRestResponse;
import com.rm.zeyou.service.BannerConfigService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 轮播图表 前端控制器
 * </p>
 *
 * @author YanYang
 * @since 2025-03-12 15:55:07
 */
@Api(tags = "轮播图相关")
@RestController
@RequestMapping("/api/banner")
public class BannerConfigController {

    @Resource
    private BannerConfigService bannerService;


    @ApiOperation(value = "查询轮播图列表")
    @GetMapping("selectBannerList")
    public ApiRestResponse<List<BannerConfig>> selecBannertList() {
        return ApiRestResponse.success(bannerService.list());
    }

}
